export function hasPermission() {
  return localStorage.getItem("token") == "admin";
}
export const havePermission = [
  { path: "/about", name: "首页" },
  {
    path: "/",
    name: "用户管理",
  },
  {
    path: "/avue",
    name: "avue",
  },
  {
    path: "/tab",
    name: "tab",
  },
  {
    path: "/hide",
    name: "hide",
  },
  {
    path: "/card",
    name: "card",
  },
  {
    path: "/trapezoid",
    name: "trapezoid",
  },
  {
    path: "/map",
    name: "地图",
  },
  {
    path: "/slot",
    name: "插槽",
  },
  {
    path: "/color",
    name: "颜色",
  },
  {
    path:'/table',
    name:'表格'
  },
  {
    path:"/ecahrt",
    name:'自定义图表',
  },
  {
    path:'/H5',
    name:'H5表格'
  }

];
export const noPermission = [{ path: "/about", name: "首页" }];
